<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('新增')" />
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
    <form class="form-horizontal m" id="form-perAppraisalInfo-add">

        <div class="row">
            <div class="col-sm-12">
                <div class="ibox">
                    <div class="ibox-title">
                        <span  th:text="${appraisalInfo.name}" ></span>
                    </div>
                    <div class="ibox-content" >
                        <input type="hidden" id="size" th:value="${specList.size()}"/>
                        <input type="hidden" id="pkid" th:value="${appraisalInfo.pkid}"/>
                        <div class="row" th:each="spec,status:${specList}">
                            <div class="col-sm-12">
                                <div class="panel panel-default">
                                    <div class="panel-heading" >
                                        <div class="row" >
                                            <div class="col-md-3" >
                                                <label  class="control-label"   th:text="${spec.templateSpec.specName}"></label>
                                            </div>
                                            <div class="col-md-2" style="text-align: right"><label  class="control-label">权重(%):</label> </div>
                                            <div class="col-md-1">
                                                <label   class="control-label"  th:id="'weight'+${status.index}" name="weight" th:text="${spec.actualWeight}"></label>
                                                <input type="hidden" th:id="'pkid'+${status.index}" th:value="${spec.pkid}"/>
                                            </div>

                                            <div class="col-md-2" style="text-align: right">
                                                <label   class="control-label"  >自评分数：</label>
                                            </div>
                                            <div class="col-md-1">
                                                <input type="text" class="form-control" onchange="caclScore()" required th:id="'selfScore'+${status.index}" th:value="${spec.selfScore}"
                                                       readonly>
                                            </div>
                                            <div >
                                            <div class="col-md-2" style="text-align: right">
                                                <label   class="control-label"  >评价分数：</label>
                                            </div>
                                            <div class="col-md-1">
                                                <input type="text" class="form-control" onchange="caclLeaderScore()" required th:id="'leaderScore'+${status.index}" th:value="${spec.leaderScore}"
                                                       readonly>
                                            </div>
                                            </div>
                                        </div>
                                    </div>

                                    <div class="panel-body" >
                                        <div class="row" >
                                            <div class="col-md-6" >
                                                <label  class="control-label"   th:text="${spec.actualSpecContent}"></label>
                                            </div>
                                            <div class="col-md-6">
                                                <textarea class="form-control" rows="4" required th:id="'selfEvaluation'+${status.index}" th:text="${spec.selfEvaluation}"
                                                          readonly></textarea>
                                            </div>
                                        </div>
                                    </div>

                                </div>
                            </div>
                        </div>


                        <div class="row" >
                            <div class="col-sm-12">
                                <div class="panel panel-default">
                                    <div class="panel-heading" >
                                        <div class="row" >
                                            <div class="col-md-10" >
                                                <label  class="control-label"  >综合自评</label>
                                            </div>

                                            <div class="col-md-2" style="text-align: right">
                                                <label   class="control-label"  id="finalSelfScore" th:text="${appraisalInfo.finalSelfScore}" readonly></label>
                                            </div>
                                        </div>
                                    </div>

                                    <div class="panel-body" >
                                        <div class="row" >
                                            <div class="col-md-2" >
                                                <label  class="control-label"   >综合自评</label>
                                            </div>
                                            <div class="col-md-10">
                                                <textarea class="form-control" required rows="4" id="finalSelfEvaluation"
                                                          th:text="${appraisalInfo.finalSelfEvaluation}" readonly></textarea>
                                            </div>
                                        </div>
                                    </div>

                                </div>
                            </div>
                        </div>
                        <div class="row" >
                            <div class="col-sm-12">
                                <div class="panel panel-default">
                                    <div class="panel-heading" >
                                        <div class="row" >
                                            <div class="col-md-10" >
                                                <label  class="control-label"  >上级评价</label>
                                            </div>

                                            <div class="col-md-2" style="text-align: right">
                                                <label   class="control-label"  id="finalLeaderScore" th:text="${appraisalInfo.finalLeaderScore}"></label>
                                            </div>
                                        </div>
                                    </div>

                                    <div class="panel-body" >
                                        <div class="row" >
                                            <div class="col-md-2" >
                                                <label  class="control-label"   >综合评价</label>
                                            </div>
                                            <div class="col-md-10">
                                                <textarea class="form-control" required rows="4" id="finalLeaderEvaluation"
                                                          th:text="${appraisalInfo.finalLeaderEvaluation}" ></textarea>
                                            </div>
                                        </div>
                                    </div>

                                </div>
                            </div>
                        </div>

                    </div>



                </div>

            </div>
        </div>
    </form>
</div>
<div th:include="include::footer"></div>
<script th:inline="javascript">


</script>
</body>
</html>
